# Valid $hour parameter to Cron::Job.
type Cron::Hour = Variant[
  Integer[0,23],
  Pattern[/(?x)\A(
    \* ( \/ ( 1?[0-9]|2[0-3]|[3-9] ) )?
    |       ( 1?[0-9]|2[0-3] ) ( - ( 1?[0-9]|2[0-3] ) ( \/ ( 1[0-9]|2[0-3]|[3-9] ) )? )?
        ( , ( 1?[0-9]|2[0-3] ) ( - ( 1?[0-9]|2[0-3] ) ( \/ ( 1[0-9]|2[0-3]|[3-9] ) )? )? )*
  )\z/]
]

